import request from '@/plugins/axios'

export function fenRole(rolesId,menusIds) {
    return request({
        url: '/roles/fenMenus?rolesId='+rolesId+'&menusIds='+menusIds
    })
}
export function getRoleIds(params) {
    return request({
        url: '/roles/getMenusIds/'+params
    })
}


export function getRoles() {
    return request({
        url: '/roles/getMenus'
    })
}


export function search(params) {
    console.log(params);
    return request({
        url: '/roles/getPage',
        method: "post",
        data: params
    })
}

